import React,{ Component } from 'react';
import './getTime.scss';
import Time from './time/time.jsx';
import Card from './card/card.jsx';
import { accountBrowseCard } from 'api/radar.js';
export default class GetTime extends Component{
	constructor (props) {
		super(props)
		this.state={
			getTime:[]
		}
	}
	render(){
		// console.log(this.props.dateList)
		return(
			<div className='getTime'>
			{
				this.props.dateList.map((item, index) => {
					return (
						<div key={index}>
							<div className={item.time !== '' ? '' : 'hidden'}>
								<Time time={item.time} key={index} />
							</div>
							<Card card={{...item}} />
						</div>
					)
				})
			}
			</div>
		)
	}
}